package com.ease.integration.snmp;

import com.ease.common.util.Detect;

public abstract class SnmpClient extends Detect {

	public static final int PORT = 161;

	protected String host;

	protected int port;

	public abstract boolean connect() throws RuntimeException;

	public abstract boolean disconnect() throws RuntimeException;

	public abstract String get(String oid) throws RuntimeException;

	/**
	 * @return the host
	 */
	public String getHost() {
		return host;
	}

	/**
	 * @param host
	 *            the host to set
	 */
	public void setHost(String host) {
		this.host = host;
	}

	/**
	 * @return the port
	 */
	public int getPort() {
		return port;
	}

	/**
	 * @param port
	 *            the port to set
	 */
	public void setPort(int port) {
		this.port = port;
	}

}
